package com.youdoneed.news.news.service;

import com.youdoneed.news.news.dao.CmfOptionsMapper;
import com.youdoneed.news.news.entity.CmfOptions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CmfOptionsService {
    private final Logger LOGGER = LoggerFactory.getLogger(CmfOptionsService.class);

    @Autowired
    private CmfOptionsMapper cmfOptionsMapper;

    /**
     * 根据配置名获取配置
     *
     * @param optionName
     * @return
     */
    public CmfOptions getOptionsByName(String optionName) {
        return cmfOptionsMapper.selectByOptionName(optionName);
    }

}
